home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 December / Dec99.iso / Data / Main.dxr / 00025_common Rollover-adjusted for VIDEO.ls < prev    next >
Encoding:
Text File  |  1999-10-05  |  585 b   |  21 lines

  1. property meS, memName
  2.  
  3. on new me
  4.   return me
  5. end
  6.  
  7. on beginSprite me
  8.   meS = me.spriteNum
  9.   memName = member(the memberNum of sprite meS).name
  10. end
  11.  
  12. on exitFrame me
  13.   if (sprite(2).visible = 0) or (rollOver(2) = 0) then
  14.     if (the mouseH >= the left of sprite meS) and (the mouseH <= the right of sprite meS) and (the mouseV >= the top of sprite meS) and (the mouseV <= the bottom of sprite meS) then
  15.       set the memberNum of sprite meS to the number of member (memName && "roll")
  16.     else
  17.       set the memberNum of sprite meS to the number of member memName
  18.     end if
  19.   end if
  20. end
  21.